package graph

import "traning/algorithm/utility/heap"

type Edge struct {
	Weight  int
	From    *Node
	To      *Node
}

func (e Edge) Less (edge heap.Compare) bool {
	return e.Weight < edge.(*Edge).Weight
}

func (e Edge) More (edge heap.Compare) bool {
	return e.Weight > edge.(*Edge).Weight
}
